<?php
if (!defined('IN_XLP')) {
    exit('Access Denied');
}
?>
<table class="table table-striped b-t">
  <thead>
    <tr>
      <th>ID</th>
      <th>城区</th>
      <th>街道</th>
      <th>社区</th>
      <th>名称</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
  <?php
 if ($rs){
	 foreach($rs as $val){
  ?>
    <tr>
      <td style="height:30px; line-height:30px; padding-left:5px"><?php echo $val['vid']?></td>
      <td style="height:30px; line-height:30px"><?php echo $val['area_name'];?></td>
      <td style="height:30px; line-height:30px"><?php echo $val['street_name'];?></td>
      <td style="height:30px; line-height:30px"><?php echo $val['community_name'];?></td>
      <td style="height:30px; line-height:30px"><?php echo $val['title'];?></td>
      <td style="height:30px; line-height:30px; text-align:center"><a href="javascript:;" class="set-village" vid="<?php echo $val['vid']?>" aid="<?php echo $val['community_id']?>" title="<?php echo $val['title']?>"><i class="fa fa-plus text"></i><span class="text">选择</span></a></td>
    </tr>
<?php
}
 }else{
?>
<tr>
   <td colspan="3" style="height:50px; line-height:50px; text-align:center">抱歉，没有找到数据，请检查输入是否正确</td>
</tr>
<?php 
 }?>
  </tbody>
</table>
<footer class="panel-footer"> 
<div class="row"> 
<div class="col-sm-12 text-right text-center-sm">
<?php echo page($total,$p,'ajax',5);?>
</div>
</div> 
</footer>